package com.atguigu.edu.feign.impl;

import com.atguigu.commonUtils.R;
import com.atguigu.edu.entity.vo.MemberVo;
import com.atguigu.edu.feign.UcenterClient;
import com.atguigu.servicebase.exceptionhandler.GuliException;
import org.springframework.stereotype.Component;

//熔断方法
@Component
public class UcenterClientImpl implements UcenterClient {
    @Override
    public MemberVo getMemberInfoById(String memberId) {
        System.out.println("熔断器执行，查询用户信息出错了！");
        throw new GuliException(20001, "查询用户信息出错了！");
    }
}
